package com.xiaomi.mapper;

import com.xiaomi.entity.ShopSpu;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @ClassName ShopSpuMapper
 * @Description TODO
 * @Author yp
 * @Date 2021/11/28 10:08
 * @Version 1.0
 **/
public interface ShopSpuMapper {
  /**
   * @MethodName 查询
   * @Description TODO
 * @Param pars
   * @Return [pars]
   * @Author zcy
   * @Date 2021/12/5 0:14
   **/
    List<ShopSpu> pageSearch(Map<String,Object> pars) throws Exception;

    /**
     * 返回总条数
     *
     * @return
     * @throws Exception
     */
    Integer getCount(Map<String,Object> pars) throws Exception;


    void insert(ShopSpu shopSpu) throws Exception;


    void update(ShopSpu shopSpu) throws Exception;


    void delete(@Param(value = "id") Integer id) throws Exception;

}
